<?php

/**
 * Place form.
 *
 * @package    form
 * @subpackage Place
 * @version    SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class PluginPlaceForm extends BasePlaceForm
{
  public function setup()
  {
    parent::setup();
    
    //Unset version field - used by versioning behaviour and shouldn't be edited.
    unset($this['version']);
    
    $this->widgetSchema['cd'] = new sfWidgetFormDoctrineChoice(array('model' => 'PlaceCd'));
    $this->widgetSchema['created_reason_cd'] = new sfWidgetFormDoctrineChoice(array('model' => 'PlaceCreatedReasonCd'));
    $this->widgetSchema['updated_reason_cd'] = new sfWidgetFormDoctrineChoice(array('model' => 'PlaceUpdatedReasonCd'));
    $this->widgetSchema['duration_unit_cd'] = new sfWidgetFormDoctrineChoice(array('model' => 'DurationUnitCd'));
    $this->widgetSchema['status_cd'] = new sfWidgetFormDoctrineChoice(array('model' => 'EntityStatusCd'));
    $this->widgetSchema['record_status_cd'] = new sfWidgetFormDoctrineChoice(array('model' => 'EntityRecordStatusCd'));
    
    $this->widgetSchema->setLabel('cd', 'Code');
    $this->widgetSchema->setLabel('duration_amt', 'Duration Amount');
    $this->widgetSchema->setLabel('duration_unit_cd', 'Duration Unit');
    $this->widgetSchema->setLabel('created_reason_cd', 'Created Reason');
    $this->widgetSchema->setLabel('updated_reason_cd', 'Updated Reason');
    $this->widgetSchema->setLabel('record_status_cd', 'Record Status Code');
    $this->widgetSchema->setLabel('status_cd', 'Status Code');
  }
}
